﻿using DogshowRepository;

namespace Dogshow.Linq2SQLRepository
{
    public class EmptyDbInit : IDatabaseInitializer
    {
        public void Initialize()
        {
            using (var ctx = new DogshowModel())
            {
                if (!ctx.DatabaseExists())
                {
                    ctx.CreateDatabase();
                }
            }
        }
    }
}